import request from '@/router/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/mes-product/openingcheck/config/page',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    });
};

export const add = (data) => {
    return request({
        url: '/api/mes-product/openingcheck/config/submit',
        method: 'post',
        data: data
    });
};

export const remove = (data) => {
    return request({
        url: '/api/mes-product/openingcheck/config/remove',
        method: 'post',
        data: data
    });
};

export const enable = (id) => {
    return request({
        url: '/api/mes-product/openingcheck/config/enable',
        method: 'get',
        params: {
            id
        }
    });
};

